package org.benjamin.lending.domain;

/**
 * Created by xywenjie on 2017/5/30.
 */
public class BJUIResult {

    private Integer statusCode;

    private String message;

    public Integer getStatusCode() {
        return statusCode;
    }

    public void setStatusCode(Integer statusCode) {
        this.statusCode = statusCode;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public static BJUIResult defaultSuccess(){
        BJUIResult bjuiResult = new BJUIResult();
        bjuiResult.statusCode = 200;
        bjuiResult.message = "你好";
        return bjuiResult;
    }

    public static BJUIResult defaultFail(String message){
        BJUIResult bjuiResult = new BJUIResult();
        bjuiResult.setStatusCode(300);
        bjuiResult.setMessage(message);
        return bjuiResult;
    }
}
